package com.itboye.textileexpres.logincontroller;

import com.itboye.textileexpres.login.LoginActivity;

import android.app.Activity;
import android.content.Intent;

/**
 * 
 * @author 未登录情况下执行该方法
 * 
 */
public class UnLoginState implements ILoginState {

	// 所有未登录的统一执行Login操作
	private void doUnLogin(Activity act) {
		Intent intent = new Intent(act, LoginActivity.class);

		act.startActivity(intent);
	}

	@Override
	public void test(Activity activity, Object obj) {
		// TODO Auto-generated method stub
		doUnLogin(activity);
	}

	/**
	 * @param 跳转到个人资料
	 * @param act
	 * @param data
	 */
	@Override
	public void onPersonalData(Activity act, Object obj) {
		// TOdoUnLogin(activity);DO Auto-generated method stub
		doUnLogin(act);
	}

	/**
	 * 个人喜好
	 */
	@Override
	public void onFavoriteData(Activity act, Object obj) {
		// TODO Auto-generated method stub
		doUnLogin(act);
	}

}
